package com.grts.utils;

import java.util.List;

public class PageModel {
	private List result;

	private int pageSize ;//
	private int totalCount;// 
	private int currentPage ;
	private int pageCount;//
	public List getResult() {
		return result;
	}
	public void setResult(List result) {
		this.result = result;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getPageCount() {
		//return pageCount;
		return (totalCount-1)/pageSize+1;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public PageModel(List result, int pageSize, int totalCount,
			int currentPage, int pageCount) {
		super();
		this.result = result;
		this.pageSize = pageSize;
		this.totalCount = totalCount;
		this.currentPage = currentPage;
		this.pageCount = pageCount;
	}
	public PageModel() {
		super();
	}
	public PageModel(int pageSize, int currentPage) {
		super();
		this.pageSize = pageSize;
		this.currentPage = currentPage;
	}
	
	
}
